﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataInput
{
    public class ListField : Field
    {
        public ListField()
        {
        }

        public ListField(String fieldName, String fieldLabel, bool canBeEmpty ) : base ( fieldName, fieldLabel, canBeEmpty )
        {            
        }

        Dictionary<string, object> list = new Dictionary<string, object>();

        public override Dictionary<string, object> getOptions()
        {
            return list;
        }

        public ListField(String fieldName, String fieldLabel, Object value, Dictionary<string, object> list, bool canBeEmpty)
            : this(fieldName, fieldLabel, value, list, canBeEmpty, false)
        {
        }

        public ListField(String fieldName, String fieldLabel, Object value, Dictionary<string, object> list, bool canBeEmpty, bool forOutput) 
            : base ( fieldName, fieldLabel, value, canBeEmpty, forOutput )
        {                        
            this.list = list;
        }

       
    }
}
